export interface ILoginParams {
    userName: string;
    password: string;
  }
  
  export interface IApiResult {
    code: number;
    data?:string;
    msg: string;
    status:boolean;
  }

  export type FormRulesCallback = (error?: Error) => void;


  export interface ISlide {
    id?: number;
    orderId: number;
    picUrl: string;
    status?: number;
    title: string;
    url: string;
  }

  

  export interface IAdmin {
    id?: number;
    avatar?: string;
    email: string;
    gender: string;
    nickName: string;
    password?: string;
    phone: string;
    status: number;
    userName: string;
}


export interface IProductQuery {
  status: string;
  minPrice: string | null;
  maxPrice: string | null;
  keyword: string;
  pageNo: number;
  pageSize: number;

}
export type FormPreviewUrlKeys = 'thumbUrl' | 'previewUrl1' | 'previewUrl2' | 'previewUrl3' | 'previewUrl4' | 'previewUrl5';
export interface IProduct {
  id?: number;
  aftermarket: string;
  categoryId: number;
  content: string;
  flag: number;
  inventory: number;
  previewUrl1: string;
  previewUrl2: string;
  previewUrl3: string;
  previewUrl4: string;
  previewUrl5: string;
  price: number;
  specification: string;
  status: number;
  summary: string;
  thumbUrl: string;
  title: string;
  categoryName: string;
}

export interface ICategory {
  id?: number;
  name: string;
  orderId: number;
  parentId: number;
  status: number;
}

 export interface IUser {
    id?: number;
    avatar?: string;
    email: string;
    gender: string;
    nickName: string;
    password?: string;
    phone: string;
    status: number;
    userName: string;
}

